netfilter: nf_tables: use correct lock to protect gc_list
authorSasha Levin <sashal@kernel.org>
Fri, 22 Sep 2023 16:30:22 +0000 (18:30 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 29 Sep 2023 04:15:31 +0000 (05:15 +0100)
commit7e722a8ea80c183131ca2f8405947dc0685ca9b1
tree7364d2523fb12cfbf0756c5f07db0d99720501a0
parente62a845729e0fe51211781f3936b6af00050cdff
netfilter: nf_tables: use correct lock to protect gc_list

commit 8357bc946a2abc2a10ca40e5a2105d2b4c57515e upstream.

Use nf_tables_gc_list_lock spinlock, not nf_tables_destroy_list_lock to
protect the gc_list.

Fixes: 5f68718b34a5 ("netfilter: nf_tables: GC transaction API to avoid race with control plane")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name netfilter-nf_tables-use-correct-lock-to-protect-gc_l.patch
net/netfilter/nf_tables_api.c